﻿@model Chbl.ViewModels.ScheduleViewModel

<table>
    <tr>
        <th>
            Дата тура
        </th>

    @foreach (DateTime gameTime in Model.GamesTime)
    {
        <th>
            @gameTime.ToShortTimeString()
        </th>
    }
    </tr>

@foreach (var item in Model.Schedule) {
    <tr>
        <td>
            @item.Key.ToShortDateString()
        </td>        

        @foreach (var game in item.Value) { 
        <td>
            @game.HomeTeam.Name - @game.RoadTeam.Name              
        </td>
        }
    </tr>
}
</table>